package com.ccn.crm.mapper;

import com.ccn.crm.model.installManage;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
@Repository
public interface installManageMapper {
    int deleteByPrimaryKey(Integer id);

    int updateStatusById(@Param("id") Integer id, @Param("pushState") String pushState);
    int insert(installManage record);

    installManage selectByPrimaryKey(Integer id);

    List<installManage> selectAll();
    installManage selectByPCode(String name);

    int updateByPrimaryKey(installManage record);

    int updateBycrmPid(@Param("crmId")String crmId,@Param("pactrealityamount")Double pactrealityamount,
                       @Param("realityinstallcost")Double realityinstallcost,@Param("realityinstallday")String realityinstallday);
}